<?php
//整数 字符串
$i = 100;
echo $i, gettype($i), '<br>';
$b = (string)$i;
echo $b, gettype($b), '<br>';
$c = (int)$b + 10;
echo $c, gettype($c), '<br>';

//浮点型 字符串
$f = .5;
echo $f, gettype($f), '<br>';
$f = (string).5;
echo $f, gettype($f), '<br>';

$sum = (int)"10" + (double)".05";
echo $sum, gettype($sum), '<br>';

//php中,0代表false 1 代表true
echo true;

//此判断语句条件为true
if ($t = 1) {
    echo 'yes';
}

